<template>
	<view class="box">
		<view class="topbox">
			<view class="inputbox">
				<image src="../../static/image/搜索.png" mode=""></image>
				<u-input v-model="value" :type="type" :border="border" />
			</view>
			<text>取消</text>
		</view>
		<view class="listbox" @click="details">
			<view class="orderbox">
				<text>订单号：15978541</text>
				<text class="state">待付款</text>
			</view>
			<Baesorder></Baesorder>
			<view class="lastbox">
				<view class="">
					<text>共4件商品</text>
					<text class="hj">合计<text>￥620.2</text></text>
				</view>
				<view class="bnbox">
					<view class="qxdd">
						取消订单
					</view>
					<view class="qxdd">
						去支付
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import Baesorder from "../../components/Baesorder/index.vue"
	export default {
		data() {
			return {
				value: '',
				type: 'text',
				border: false
			}
		},
		methods: {
			// 查看详情
			details() {
				this.jumpLink({
					link: "/pages/my_order/index"
				})
			}
		},
		components: {
			Baesorder
		}
	}
</script>

<style lang="scss" scoped>
	.box {
		background-color: #FFFFFF;
		padding-top: 30rpx;
		box-sizing: border-box;

		.topbox {
			display: flex;
			align-items: center;
			margin-left: 65rpx;

			.inputbox {
				width: 570rpx;
				height: 64rpx;
				border-radius: 32rpx;
				display: flex;
				align-items: center;
				border: solid 2rpx #f0f0f0;
				padding-left: 20rpx;
				box-sizing: border-box;

				image {
					width: 39rpx;
					height: 39rpx;
				}
			}

			text {
				font-family: SourceHanSansCN-Regular;
				font-size: 28rpx;
				color: #222222;
				margin-left: 20rpx;
			}
		}

		.listbox {
			padding: 20rpx;
			box-sizing: border-box;
			margin-bottom: 50rpx;

			.orderbox {
				display: flex;
				align-items: center;
				justify-content: space-between;

				text {
					font-family: SourceHanSansCN-Regular;
					font-size: 24rpx;
					color: #666666;
				}

				.state {
					font-family: SourceHanSansCN-Regular;
					font-size: 24rpx;
					color: #f73f33;
				}
			}

			.lastbox {
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-top: 40rpx;

				text {
					font-family: SourceHanSansCN-Regular;
					font-size: 24rpx;
					color: #666666;

				}

				.hj {
					margin-left: 10rpx;

					text {
						color: #f73f33;
					}
				}

				.bnbox {
					display: flex;
					align-items: center;

					.qxdd {
						padding: 0 20rpx;
						box-sizing: border-box;
						height: 41rpx;
						border-radius: 20rpx;
						border: solid 1rpx #bebebe;
						line-height: 41rpx;
						text-align: center;
						font-family: SourceHanSansCN-Regular;
						font-size: 24rpx;
						color: #333333;
						margin-left: 10rpx;
					}
				}
			}
		}
	}
</style>
